package com.ny.zuoye2567.dao.service;

import com.ny.zuoye2567.dao.shiti.Student;
import com.ny.zuoye2567.dao.dao.StudentDao;
import com.ny.zuoye2567.dao.dao.StudentDaoImpl;

import java.sql.SQLException;

public class StudentServiceImpl implements StudentService{
    private StudentDao studentDao = new StudentDaoImpl();


    @Override
    public Student login(String name, String password) throws Exception {
        return studentDao.login(name,password);
    }

    @Override
    public int insertStudent(Student student) throws SQLException, ClassNotFoundException {
        return studentDao.insertStudent(student);
    }
}
